package com.guhecloud.step.definition.test.order;

import com.guhecloud.step.definition.runtime.IIdentityResolver;
import com.guhecloud.step.definition.runtime.annotation.Partner;
import org.jetbrains.annotations.NotNull;

@Partner(code = KaPartner.CODE,name = "关键客户")
public class KaPartner implements IIdentityResolver<IOrderMain> {

    public static final String CODE = "KA";

    @Override
    public boolean match(@NotNull IOrderMain model) {
        if (model.getSource() == null) {
            return false;
        }

        return model.getSource().equalsIgnoreCase(CODE);
    }
}
